.class Lcom/xingbook/park/activity/j;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# instance fields
.field a:Z

.field final synthetic b:Lcom/xingbook/park/activity/BaseXbMainActivity;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/BaseXbMainActivity;)V
    .locals 1

    iput-object p1, p0, Lcom/xingbook/park/activity/j;->b:Lcom/xingbook/park/activity/BaseXbMainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/activity/j;->a:Z

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 2

    if-lez p4, :cond_0

    add-int v0, p2, p3

    add-int/lit8 v1, p4, -0x1

    if-lt v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    iput-boolean v0, p0, Lcom/xingbook/park/activity/j;->a:Z

    return-void

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 2

    if-nez p2, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/park/activity/j;->a:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/j;->b:Lcom/xingbook/park/activity/BaseXbMainActivity;

    iget-object v1, p0, Lcom/xingbook/park/activity/j;->b:Lcom/xingbook/park/activity/BaseXbMainActivity;

    iget-object v1, v1, Lcom/xingbook/park/activity/BaseXbMainActivity;->a:Lcom/xingbook/park/c/a/d;

    invoke-virtual {v1}, Lcom/xingbook/park/c/a/d;->getSelectedIndex()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/activity/BaseXbMainActivity;->a(I)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/j;->b:Lcom/xingbook/park/activity/BaseXbMainActivity;

    invoke-virtual {v0}, Lcom/xingbook/park/activity/BaseXbMainActivity;->l()V

    :cond_0
    return-void
.end method
